-
-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "Fix co-assignment for binary operations" #6985
Conversation
This reverts commit 7ebd1d9.
tg.last_worker = ( | ||
ws if tg.states["released"] + tg.states["waiting"] > 1 else None | ||
) | ||
tg.last_worker_tasks_left -= 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference, what it looked like before #6985:
distributed/distributed/scheduler.py
Lines 1850 to 1868 in f07f384
ws = tg.last_worker | |
if not (ws and tg.last_worker_tasks_left and ws.address in self.workers): | |
# Last-used worker is full or unknown; pick a new worker for the next few tasks | |
ws = min( | |
(self.idle or self.workers).values(), | |
key=partial(self.worker_objective, ts), | |
) | |
assert ws | |
tg.last_worker_tasks_left = math.floor( | |
(len(tg) / self.total_nthreads) * ws.nthreads | |
) | |
# Record `last_worker`, or clear it on the final task | |
tg.last_worker = ( | |
ws if tg.states["released"] + tg.states["waiting"] > 1 else None | |
) | |
tg.last_worker_tasks_left -= 1 | |
return ws |
Note there's still a slight change here—previously we'd schedule onto any worker if none were idle, now we only schedule onto running workers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gjoseph92! Have we had a chance to confirm this fixes the observed regression in coiled/benchmarks#295 as expected? Also cc @ian-r-rose in case he's looked into it
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 14 files - 1 14 suites - 1 6h 9m 1s ⏱️ - 23m 51s For more details on these failures, see this check. Results for commit 3f215fd. ± Comparison against base commit bfc5cfe. |
I have not, but will try now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gjoseph92
Yeah, thanks for handling this @gjoseph92 |
This reverts commit 7ebd1d9.
This reverts commit 7ebd1d9.
Re-opens #6597. See coiled/benchmarks#295 for motivation.
pre-commit run --all-files